package cn.memset.code.stream;

public class Employee {
    /**
     * 姓名
     */
    private String name;
    /**
     * 性别：0 女 1 男
     */
    private int gender;
    /**
     * 部门
     */
    private String department;
    /**
     * 薪酬
     */
    private int salary;

    public Employee() {
    }

    public Employee(String name, int gender, String department, int salary) {
        this.name = name;
        this.gender = gender;
        this.department = department;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + name + "'" +
                '}';
    }
}
